add_subdirectory(tests)

set(kritalutdocker_static_SRCS
  lutdocker_dock.cpp
  black_white_point_chooser.cpp
)

ki18n_wrap_ui(kritalutdocker_static_SRCS
  wdglut.ui
)

if (HAVE_OCIO_V2)
  set(kritalutdocker_static_SRCS
    ${kritalutdocker_static_SRCS}
    ocio_display_filter_vfx2021.cpp
  )
else()
  set(kritalutdocker_static_SRCS
    ${kritalutdocker_static_SRCS}
    ocio_display_filter_vfx2020.cpp
  )
endif()

kis_add_library(kritalutdocker_static STATIC ${kritalutdocker_static_SRCS})

target_link_libraries(kritalutdocker_static PUBLIC kritaui OpenColorIO::OpenColorIO)

set(KRITA_LUTDOCKER_SOURCES
  lutdocker.cpp
)

kis_add_library(kritalutdocker MODULE ${KRITA_LUTDOCKER_SOURCES})

target_link_libraries(kritalutdocker kritalutdocker_static)
install(TARGETS kritalutdocker  DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})
